﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace FXnaGis
{
    public class FClipArgs:EventArgs
    {
          #region Private Variables

        private List<Rectangle> _clipRegions;

        #endregion

        #region Constructors

        /// <summary>
        /// Creates a new instance of ClipArgs
        /// </summary>
        public FClipArgs(List<Rectangle> clipRectangles)
        {
            _clipRegions = clipRectangles;
        }

        /// <summary>
        /// Creates a ClipArg from a single rectangle instead of a list of rectangles
        /// </summary>
        /// <param name="clipRectangle">The clip rectangle</param>
        public FClipArgs(Rectangle clipRectangle)
        {
            _clipRegions = new List<Rectangle> { clipRectangle };
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets the ClipRectangle for this event.
        /// </summary>
        public List<Rectangle> ClipRectangles
        {
            get { return _clipRegions; }
            protected set { _clipRegions = value; }
        }

        #endregion

    }
}
